Installation of ApPHP DataForm

(for version 3.0.0 or above)

A new installation of PHP DataForm is a very straight forward process:

[top]

Step 1. Uncompressing downloaded file.


Uncompress the PHP DataForm version 3.x.x script archive. The archive will create a directory called "PHPDF_3XX"


[top]

Step 2. Uploading files.


Upload content of this folder (all files and sub-directories it includes) to your document root (public_html, www, httpdocs etc.) using FTP.


For example:

public_html/your_site/dataform

Rename default.htaccess into .htaccess if you need to add PHP5 handler.


[top]

Step 3. Creating database.


Using phpMyAdmin or another tool, create your database and user, and assign that user to the database. Write down the name of the database, username, and password for the database installation procedure.

Create all needed database tables.


[top]

Step 4. Editing some important values.


Open code_template.php file, uncomment these 4 lines and change variable values on yours (saved on step 3).

$DB_USER='user_username'; /* usually like this: prefix_name           */
$DB_PASS='user_password'; /* must be already encrypted (recommended)  */
$DB_HOST='localhost';     /* usually localhost                        */
$DB_NAME='db_name';       /* usually like this: prefix_dbName         */


Uncomment next lines of code and define a relative path to dataform.class.php file and "pear" directory (relatively to the code_template.php file).

/* Ex.: "dataform/" or "../dataform/" */
define ("DATAFORM_DIR", "");    

require_once(DATAFORM_DIR.'dataform.class.php');


[top]

Step 5. Renaming code_template.php file.


Rename code_template.php file according to your needs, such as first_example.php and then type in your browser:

http://your_site/dataform/first_example.php


[top]

Step 6. Additional settings (optional).


Set allow_call_time_pass_reference to true in your php.ini file.

Congratulations, you now have PHP DataForm v3.x.x. Installed!